import request from '@/utils/request';

/**
 * 分页查询用户
 */

export async function setting_list(params) {
  const res = await request.post(
    '/setting/cashier_setting/setting_list',
    params
  );
  if (res.data.code === 1) {
    return res.data;
  }
  return Promise.reject(res.data.msg);
}
export async function edit_setting(params) {
  const res = await request.post(
    '/setting/cashier_setting/edit_setting',
    params
  );
  if (res.data.code === 1) {
    return res.data;
  }
  return Promise.reject(res.data.msg);
}
